package com.aiti.lulian.mapper.card.industry;

import com.aiti.base.core.base.mapper.SuperMapper;
import com.aiti.lulian.dto.industry.EnterpriseInfoDto;
import com.aiti.lulian.dto.industry.StarEnterpriseQueryDto;
import com.aiti.lulian.dto.industry.SysUserInfoDto;
import com.aiti.lulian.entity.industry.CardGovIndustryStarEnterprise;
import com.aiti.lulian.vo.industry.StarEnterpriseInfoVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CardGovIndustryStarEnterpriseMapper extends SuperMapper<CardGovIndustryStarEnterprise> {

    EnterpriseInfoDto queryEnterpriseInfo(@Param("enterpriseId") String enterpriseId);

    String queryAreaIdByName(@Param("areaName") String areaName);

    String queryCardUserId(@Param("enterpriseId") String enterpriseId);

    SysUserInfoDto queryUserInfo(@Param("userId") String userId);

    Integer getCountUserEnterpriseManagerRole(@Param("userId") String userId,@Param("roleId") String roleId);

    Integer getStarEnterpriseCount(@Param("enterpriseId") String enterpriseId, @Param("industryId") String industryId);

    void deleteStartEnterprise(@Param("baseIds") List<String> baseIds);

    StarEnterpriseInfoVo queryStarEnterpriseDetail(@Param("baseId") String baseId);

    List<StarEnterpriseInfoVo> queryIndustryStarEnterpriseList(IPage<StarEnterpriseInfoVo> page, @Param("dto") StarEnterpriseQueryDto queryDto);

    void updateStarEnterprise(@Param("po") CardGovIndustryStarEnterprise po);
}
